.layui-layout-body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.layui-side-scroll {
  width: auto;
  overflow-x: hidden;
  background-color: #393D49;
  &::-webkit-scrollbar {
    width: 0px;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
  }
}

.layui-header {
  left: 200px;
}

// layui-layout-admin
.layui-layout-admin {
  .layui-side {
    top: 0px;
  }
  .layui-logo {
    text-align: center;
    font-size: 16px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1002;
    width: 200px;
    height: 60px;
    padding: 0px 10px;
    box-sizing: border-box;
    overflow: hidden;
    font-weight: 400;
    background-repeat: no-repeat;
    background-position: center center;
    line-height: 59px;
    border-bottom: 1px solid #181a1f;
    background: #181a1f;
  }
  .layui-body {
    > .layui-tab {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: 0;
      > .layui-tab-title {
        height: 40px;
        line-height: 40px;
        padding: 0 80px 0 40px;
        background-color: #fff;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
        position: absolute;
        right: 0;
        z-index: 999;
        border: none;
        overflow: hidden;
        li {
          min-width: 0;
          line-height: 40px;
          max-width: 160px;
          text-overflow: ellipsis;
          overflow: hidden;
          border-right: 1px solid #eeeeee;
          vertical-align: top;
          &:first-child {
            .layui-tab-close {
              display: none; /** 第一个选项卡不可关闭 */
            }
          }
          &.layui-this, &:hover {
            background-color: #eeeeee;
          }
          &.layui-this {
            &:after {
              width: 100%;
              border: none;
              height: 2px;
              border-radius: 0;
              top: 38px;
              background-color: #4487f6;
            }
          }
          /** tab关闭按钮样式 */
          .layui-tab-close {
            width: 16px;
            height: 16px;
            line-height: 16px;
            border-radius: 50%;
            font-size: 12px;
          }
          .layui-tab-bar {
            display: none; /* 不用左侧的展开收缩栏了 */
          }
        }
      }
      > .layui-tab-content {
        padding: 0;
        position: absolute;
        left: 0;
        top: 40px;
        right: 0;
        bottom: 0;
        > .layui-tab-item {
          position: absolute;
          bottom: 0;
          right: 0;
          top: 0;
          left: 0;
          /*overflow: auto;*/
          /*-webkit-overflow-scrolling: touch;*/
        }
      }
    }
    .layadmin-tabs-control {
      position: absolute;
      top: 0;
      width: 40px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      cursor: pointer;
      transition: all .3s;
      border-left: 1px solid #eeeeee;
      z-index: 1000;
      background-color: white;
      &:hover {
        background-color: #eeeeee;
      }
    }
    .layui-icon-prev {
      left: 0;
      border-left: none;
      border-right: 1px solid #eeeeee;
    }
    .layui-icon-next {
      right: 40px;
    }
    .layui-icon-down {
      right: 0;
      .layui-nav {
        .layui-nav-more {
          display: none;
        }
      }
    }
  }
}

// layui-nav
.layui-nav {
  padding: 0;
  background-color: #23262e;
  width: auto;
  .layui-nav-item {
    .nav-menu-a {
      padding-left: 20px;
      transition: transform .5s ease;
      //i {
      //  margin-right: 8px;
      //}
    }
    .layui-nav-child {
      dd {
        .layui-nav-child {
          li {
            a {
              padding-left: 50px;
            }
          }
        }
      }
    }
    a {
      padding: 0 10px;
    }
    .user-and-icon {
      display: none;
    }
  }
  .layui-this {
    &:after {
      height: 3px;
    }
    .layui-nav-bar, .layui-nav-tree {
      height: 3px;
    }
    .layui-nav-itemed {
      &:after {
        height: 3px;
      }
    }
  }
}

// 什么鬼三级树
.layui-nav-tree {
  margin-top: 60px;
  .layui-nav-child {
    .nav-menu-a-child {
      padding-left: 40px;
      &:hover {
        background-color: #4E5465;
      }
    }
    a {
      &.nav-menu-a-childlist {
        padding-left: 50px;
        &:hover {
          background-color: #4E5465;
        }
      }
    }
  }
  .layui-this {
    background-color: #4E5465;
    > .three_this {
      background-color: #4E5465;
    }
    .three_this {
      &:hover {
        background-color: #4E5465;
      }
    }
  }
}

.layui-bg-black {
  background-color: #23262e !important;
}

.layui-layout-left {
  position: absolute !important;
  left: 0;
  top: 0;
}

.layui-tab {
  margin-top: 0;
  border-width: 0px;
}

.layui-tab-content {
  padding: 0;
}

// layui-tab-title
.layui-tab-title {
  li {
    &:nth-child(2) {
      .layui-tab-close {
        display: none;
      }
    }
  }
  &.content-tab-title {
    padding-right: 80px;
  }
}

// theme
.theme {
  position: absolute;
  right: -288px;
  z-index: 1024;
  width: 288px;
  height: 100%;
  background: white;
}

.theme-box {
  display: block;
  border: 1px solid white;
  width: 120px;
  height: 88px;
  float: left;
  margin-right: 10px;
  &:hover {
    border: 1px solid #5FB878;
  }
}

.theme-header {
  border-bottom: 0;
  height: 20px;
}

.theme-body {
  padding: 0;
}

.left-menu-theme {
  width: 35px;
  height: 68px;
  float: left;
}

.theme-name {
  float: left;
  width: 85px;
  line-height: 68px;
  text-align: center;
}

.theme-box-body {
  padding: 10px 12px;
}

/** 选项卡其他操作按钮样式 */
.layadmin-pagetabs {
  height: 40px;
  line-height: 40px;
  /*padding: 0 80px 0 40px;*/
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
  .layui-icon-prev {
    left: 0;
    border-left: none;
    border-right: 1px solid #f6f6f6;
  }
  .layadmin-tabs-control {
    position: absolute;
    top: 0;
    width: 40px;
    /* height: 100%; */
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    -webkit-transition: all .3s;
    box-sizing: border-box;
    border-left: 1px solid #f6f6f6;
  }
  .layui-icon-next {
    right: 40px;
  }
  .layui-icon-next {
    right: 40px;
  }
}

.layui-nav {
  position: relative;
  /* padding: 0 20px; */
  background-color: #393D49;
  color: #fff;
  border-radius: 2px;
  font-size: 0;
  box-sizing: border-box;
  .layui-nav-item {
    position: relative;
    display: inline-block;
    *display: inline;
    *zoom: 1;
    vertical-align: middle;
    line-height: 60px;
    a {
      padding: 0 10px;
    }
  }
  * {
    font-size: 14px;
  }
  .layadmin-tabs-select {
    a {
      display: block;
      padding: 0 20px;
      box-sizing: border-box;
      color: #fff;
      color: rgba(255, 255, 255, .7);
      transition: all .3s;
      -webkit-transition: all .3s;
    }
  }

}

.layadmin-tabs-select {
  &.layui-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    /* height: 100%; */
    padding: 0;
    background: 0 0;
    .layui-nav-item {
      line-height: 40px;
      a {
        color: #666;
      }
      > a {
        height: 40px;
      }
    }
    .layui-nav-child {
      top: 40px;
      left: auto;
      right: 0;
    }
  }
}

.layui-nav-child {
  display: none;
  position: absolute;
  left: 0;
  top: 65px;
  min-width: 100%;
  line-height: 36px;
  padding: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
  border: 1px solid #d2d2d2;
  background-color: #fff;
  z-index: 100;
  border-radius: 2px;
  white-space: nowrap;
}

.layui-anim-fadein {
  -webkit-animation-name: layui-fadein;
  animation-name: layui-fadein;
}

.layui-anim-upbit {
  -webkit-animation-name: layui-upbit;
  animation-name: layui-upbit;
}

.layui-anim {
  -webkit-animation-duration: .3s;
  animation-duration: .3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.layui-tab-item iframe {
  background: #f2f2f2;
}

.layui-layout-right {
  right: 220px;
}

@media screen and (max-width: 640px ) {
  .layui-layout-right {
    right: 200px;
  }

  .top-user-child {
    left: -45px;
  }

  .left-navbar-menu {
    width: 0;
  }

  .layui-nav {
    .layui-nav-item {
      .user-and-img {
        display: none;
      }
      .layui-nav-more {
        display: none;
        border-style: none;
      }
      .user-and-icon {
        display: block;
      }
      .full-scann {
        display: none;
      }
      .donation-top {
        display: none;
      }
    }
  }

  .layui-layout-admin {
    .navbar-header {
      .nav-header-right {
        right: 0;
      }
    }
    .layui-side {
      width: 0px;
    }
    .layui-logo {
      width: 0px;
      padding: 0px;
    }
  }
}
